-- GENERATED SPELL FOR [Infinity Blades] --


function spell0_21271(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_21271', 582, 1)
end

function Sorts_21271(pUnit, Event)
local choix_sorts_21271 = math.random(0, 0)
if choix_sorts_21271 == 0 then
pUnit:RegisterEvent('spell0_21271', 1, 1)
end
end

function mob21271_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21271', math.random(1500, 3000), 1)
end

function mob21271_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21271_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21271_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21271, 1, 'mob21271_Action')
RegisterUnitEvent(21271, 2, 'mob21271_Leave')
RegisterUnitEvent(21271, 3, 'mob21271_Kill')
RegisterUnitEvent(21271, 4, 'mob21271_Die')
